﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Contact.aspx.cs" Inherits="Framework.Contact" %>

<%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="https://maps.googleapis.com/maps/api/js"></script>
    <script type="text/javascript">
        function initialize() {
            var mapCanvas = document.getElementById('map');
            var myLatlng = new google.maps.LatLng(10.77732, 106.68875);
            var mapOptions = {
                zoom: 20,
                center: myLatlng,
                mapTypeId: google.maps.MapTypeId.ROADMAP
            }
            var map = new google.maps.Map(mapCanvas, mapOptions);

            // Place a draggable marker on the map
            var marker = new google.maps.Marker({
                position: myLatlng,
                map: map,
                draggable: true,
                title: "3W Compnay, 6th Floor. OIIC Building, 248-250 Nguyen Dinh Chieu, Ward 6, Dist 3, Ho Chi Minh City",
                icon: "Images/minlogo.png"
            });
        }
        google.maps.event.addDomListener(window, 'load', initialize);
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <style>
        #header-top {
            display: none;
        }

        #main-nav {
            margin-top: 0;
        }
    </style>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="col-md-6">
                    <asp:ScriptManager ID="scr" runat="server"></asp:ScriptManager>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                                                <div class="form-group">
                          <asp:Label ID="lblAlertContact" ForeColor="#009933" runat="server"></asp:Label>
                    </div>

                            <div class="home-contact" style="overflow: hidden; background: none">
                                <div class="form-group">
                                    <label for="<%= txtName.ClientID %>">
                                        <%= DGSFramework.Globals.GetLanguage("Họ Tên", "Full Name", true) %><span>(*)</span>
                                    </label>
                                    <asp:TextBox ID="txtName" runat="server" CssClass="form-control" placeholder=''></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtName"
                                        CssClass="help-inline" ValidationGroup="contact" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                                </div>
                                <div class="form-group">
                                    <label for="<%= txtPhone.ClientID %>">
                                        <%= DGSFramework.Globals.GetLanguage("Điện thoại", "Phone Number", true) %><span>(*)</span>
                                    </label>
                                    <asp:TextBox ID="txtPhone" runat="server" CssClass="form-control" placeholder=''></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="txtPhone"
                                        CssClass="help-inline" ValidationGroup="contact" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                                </div>
                                <div class="form-group">
                                    <label for="<%= txtEmail.ClientID %>">
                                        Email<span>(*)</span>
                                    </label>
                                    <asp:TextBox ID="txtEmail" runat="server" CssClass="form-control" placeholder=''></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" ControlToValidate="txtEmail"
                                        CssClass="help-inline" ValidationGroup="contact" runat="server" ErrorMessage="*"
                                        Display="Dynamic"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                        ValidationGroup="contact" runat="server" ControlToValidate="txtEmail" ErrorMessage="*"
                                        CssClass="help-inline" Display="Dynamic"></asp:RegularExpressionValidator>
                                </div>
                                <div class="from-group" style="margin-top: 15px;">
                                     <label for="<%= txtTitle.ClientID %>">
                                    <%= DGSFramework.Globals.GetLanguage("Tiêu đề", "Title", true) %><span>(*)</span>
                                </label>
                                <asp:TextBox ID="txtTitle" runat="server" CssClass="form-control" placeholder=''></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" ControlToValidate="txtTitle"
                                    CssClass="help-inline" ValidationGroup="contact" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                                </div>
                                <div class="form-group">
                                    <label for="<%= txtContent.ClientID %>">
                                        <%= DGSFramework.Globals.GetLanguage("Nội dung", "Message", true)%><span>(*)</span>
                                    </label>
                                    <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Rows="5" Columns="15"
                                        Style="width: 100%; height: 120px; border-radius: 5px;" placeholder=''></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" ControlToValidate="txtContent" Display="Dynamic"
                                        CssClass="help-inline" ValidationGroup="contact" runat="server" ErrorMessage="*"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator Display="Dynamic" ControlToValidate="txtContent"
                                        ValidationGroup="contact" ID="RegularExpressionValidator2" CssClass="help-inline mcinput yes"
                                        ValidationExpression="^[\s\S]{20,}$" runat="server" ErrorMessage="*"></asp:RegularExpressionValidator>
                                </div>
                                <div class="form-group">
                                    <div class="controls" style="float: left; text-align: left;">
                                        <div runat="server" id="pbTarget" visible="false">
                                        </div>
                                        <recaptcha:RecaptchaControl ID="recaptcha" runat="server" PublicKey="6LdWxwATAAAAAB0g8EtthU2czCHZ38LD9Dp7K_7N"
                                            PrivateKey="6LdWxwATAAAAAMCbkZKdJn9cn7W2N0FnZuyP50zZ" />
                                        <span id="lblCaptchaMessage" runat="server" class="help-inline" style="color: Red;"></span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                                <div class="clear">
                                </div>
                             <div class="form-group">
                                    <asp:Button ID="btnSend" runat="server" ValidationGroup="contact"
                                        OnClick="btnSend_Click" Style="width: 100px;" Text="Send" />
                                    <asp:Button Text="Cancel" ID="btnReset" runat="server" OnClick="btnReset_Click" Style="width: 100px; margin-left: 10px;" />
                                </div>
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </div>
                <div class="col-md-6" style="border: none; box-shadow: none">
                    <div id="map" style="width: 100%; height: 380px;">
                    </div>
                    <div class="info-com">
                        <ul style="margin-left: 0; padding-left: 0">
                            <li><i class="glyphicon glyphicon-bullhorn"></i> Công Ty Phần Mềm Chứng Khoán 3W</li>
                            <li><i class="glyphicon glyphicon-home"></i> Tầng 6, Tòa Nhà OIIC, 248-250 Nguyển Đình Chiểu, Phường 6, Quận 3,<br />
                                Hồ Chí Minh City, Việt Nam</li>
                            <li><i class="glyphicon glyphicon-phone-alt"> 08.66799090</i> </li>
                            <li><i class="glyphicon glyphicon-envelope"> info@3wco.vn</i> </li>
                            <li><i class="glyphicon glyphicon-share"> <a href="http://www.3wco.vn">www.3wco.vn</a> </i></li>
                        </ul>
                    </div>
                  
                </div>
        </div>
            </div>
    </div>
</asp:Content>
